package sv_ws

func GetSv() *SvWs {
	if _Sv == nil {
		_Sv = NewSv()
	}
	return _Sv
}

func Bind(t string, fn func(*WsMsg)) {
	sv := GetSv()
	sv.Bind(t, fn)
}

func GetHub() *Hub {
	if _Hub == nil {
		_Hub = newHub()
	}
	return _Hub
}
